<%@ page import="weeklyreport.Task"%>



<div
	class="fieldcontain ${hasErrors(bean: taskInstance, field: 'issueNumber', 'error')} required">
	<label for="issueNumber">问题编号<span class="required-indicator">*</span>
	</label>
	<g:textField name="issueNumber" required=""
		value="${taskInstance?.issueNumber}" />
	(格式：姓名+年月日+顺序号，如：jx14020701)
</div>

<div
	class="fieldcontain ${hasErrors(bean: taskInstance, field: 'groupName', 'error')} ">
	<label for="groupName">组别 </label>
	<g:textField name="groupName" value="${taskInstance?.groupName}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: taskInstance, field: 'itsmNumber', 'error')} ">
	<label for="itsmNumber">ITSM单号 </label>
	<g:textField name="itsmNumber" value="${taskInstance?.itsmNumber}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: taskInstance, field: 'status', 'error')} ">
	<label for="status">开发状态 </label>
	<g:select name="status"
		from="${taskInstance.constraints.status.inList}"
		value="${taskInstance?.status}" valueMessagePrefix="task.status" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: taskInstance, field: 'planningBegin', 'error')} ">
	<label for="planningBegin">计划开始时间 </label>
	<input type="text" id="planningBegin" class="datepicker"
		value="${formatDate(format:'yyyy/MM/dd', date:taskInstance?.planningBegin)}" />
	<input type="hidden" name="planningBegin" value="date.struct" />
	<input type="hidden" name="planningBegin_year" id="planningBegin_year" value="${formatDate(format:'yyyy', date:taskInstance?.planningBegin)}" />
	<input type="hidden" name="planningBegin_month" id="planningBegin_month" value="${formatDate(format:'MM', date:taskInstance?.planningBegin)}" />
	<input type="hidden" name="planningBegin_day" id="planningBegin_day" value="${formatDate(format:'dd', date:taskInstance?.planningBegin)}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: taskInstance, field: 'beginDate', 'error')} ">
	<label for="beginDate">实际开始时间 </label>
	<input type="text" id="beginDate" class="datepicker"
		value="${formatDate(format:'yyyy/MM/dd', date:taskInstance?.beginDate)}" />
	<input type="hidden" name="beginDate" value="date.struct" />
	<input type="hidden" name="beginDate_year" id="beginDate_year" value="${formatDate(format:'yyyy', date:taskInstance?.beginDate)}" />
	<input type="hidden" name="beginDate_month" id="beginDate_month" value="${formatDate(format:'MM', date:taskInstance?.beginDate)}" />
	<input type="hidden" name="beginDate_day" id="beginDate_day" value="${formatDate(format:'dd', date:taskInstance?.beginDate)}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: taskInstance, field: 'planningEnd', 'error')} ">
	<label for="planningEnd">计划完成时间 </label>
	<input type="text" id="planningEnd" class="datepicker"
		value="${formatDate(format:'yyyy/MM/dd', date:taskInstance?.planningEnd)}" />
	<input type="hidden" name="planningEnd" value="date.struct" />
	<input type="hidden" name="planningEnd_year" id="planningEnd_year" value="${formatDate(format:'yyyy', date:taskInstance?.planningEnd)}" />
	<input type="hidden" name="planningEnd_month" id="planningEnd_month" value="${formatDate(format:'MM', date:taskInstance?.planningEnd)}" />
	<input type="hidden" name="planningEnd_day" id="planningEnd_day" value="${formatDate(format:'dd', date:taskInstance?.planningEnd)}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: taskInstance, field: 'endDate', 'error')} ">
	<label for="endDate">实际完成时间 </label>
	<input type="text" id="endDate" class="datepicker"
		value="${formatDate(format:'yyyy/MM/dd', date:taskInstance?.endDate)}" />
	<input type="hidden" name="endDate" value="date.struct" />
	<input type="hidden" name="endDate_year" id="endDate_year" value="${formatDate(format:'yyyy', date:taskInstance?.endDate)}" />
	<input type="hidden" name="endDate_month" id="endDate_month" value="${formatDate(format:'MM', date:taskInstance?.endDate)}" />
	<input type="hidden" name="endDate_day" id="endDate_day" value="${formatDate(format:'dd', date:taskInstance?.endDate)}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: taskInstance, field: 'internalVersion', 'error')} ">
	<label for="internalVersion">预期内部版本号 </label>
	<g:textField name="internalVersion"
		value="${taskInstance?.internalVersion}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: taskInstance, field: 'description', 'error')} ">
	<label for="description">问题描述 </label>
	<g:textField name="description" value="${taskInstance?.description}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: taskInstance, field: 'manDay', 'error')} ">
	<label for="manDay">开发人天 </label>
	<g:field type="number" step="0.5" min="0.5" name="manDay"
		value="${fieldValue(bean: taskInstance, field: 'manDay')}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: taskInstance, field: 'planningManDay', 'error')}">
	<label for="planningManDay">计划人天 </label>
	<g:field type="number" step="0.5" min="0.5" name="planningManDay"
		value="${fieldValue(bean: taskInstance, field: 'planningManDay')}" />
</div>

<g:hiddenField name="developer.id" value="${session.user.id }" />

